Optimal. Leaf size=63 \[ -\frac {a A}{x}+(A b+a C) x+\frac {1}{2} b B x^2+\frac {1}{3} (A c+b C) x^3+\frac {1}{4} B c x^4+\frac {1}{5} c C x^5+a B \log (x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 63, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.038, Rules used = {1642}
\begin {gather*} x (a C+A b)-\frac {a A}{x}+a B \log (x)+\frac {1}{3} x^3 (A c+b C)+\frac {1}{2} b B x^2+\frac {1}{4} B c x^4+\frac {1}{5} c C x^5 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 1642
Rubi steps
\begin {align*} \int \frac {\left (A+B x+C x^2\right ) \left (a+b x^2+c x^4\right )}{x^2} \, dx &=\int \left (A b \left (1+\frac {a C}{A b}\right )+\frac {a A}{x^2}+\frac {a B}{x}+b B x+(A c+b C) x^2+B c x^3+c C x^4\right ) \, dx\\ &=-\frac {a A}{x}+(A b+a C) x+\frac {1}{2} b B x^2+\frac {1}{3} (A c+b C) x^3+\frac {1}{4} B c x^4+\frac {1}{5} c C x^5+a B \log (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 63, normalized size = 1.00 \begin {gather*} -\frac {a A}{x}+(A b+a C) x+\frac {1}{2} b B x^2+\frac {1}{3} (A c+b C) x^3+\frac {1}{4} B c x^4+\frac {1}{5} c C x^5+a B \log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 57, normalized size = 0.90
method | result | size |
default | \(\frac {c C \,x^{5}}{5}+\frac {B c \,x^{4}}{4}+\frac {A c \,x^{3}}{3}+\frac {C b \,x^{3}}{3}+\frac {B b \,x^{2}}{2}+A b x +a C x -\frac {a A}{x}+a B \ln \left (x \right )\) | \(57\) |
risch | \(\frac {c C \,x^{5}}{5}+\frac {B c \,x^{4}}{4}+\frac {A c \,x^{3}}{3}+\frac {C b \,x^{3}}{3}+\frac {B b \,x^{2}}{2}+A b x +a C x -\frac {a A}{x}+a B \ln \left (x \right )\) | \(57\) |
norman | \(\frac {\left (\frac {A c}{3}+\frac {b C}{3}\right ) x^{4}+\left (A b +a C \right ) x^{2}-a A +\frac {B b \,x^{3}}{2}+\frac {B c \,x^{5}}{4}+\frac {c C \,x^{6}}{5}}{x}+a B \ln \left (x \right )\) | \(61\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 55, normalized size = 0.87 \begin {gather*} \frac {1}{5} \, C c x^{5} + \frac {1}{4} \, B c x^{4} + \frac {1}{2} \, B b x^{2} + \frac {1}{3} \, {\left (C b + A c\right )} x^{3} + B a \log \left (x\right ) + {\left (C a + A b\right )} x - \frac {A a}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 62, normalized size = 0.98 \begin {gather*} \frac {12 \, C c x^{6} + 15 \, B c x^{5} + 30 \, B b x^{3} + 20 \, {\left (C b + A c\right )} x^{4} + 60 \, B a x \log \left (x\right ) + 60 \, {\left (C a + A b\right )} x^{2} - 60 \, A a}{60 \, x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.07, size = 58, normalized size = 0.92 \begin {gather*} - \frac {A a}{x} + B a \log {\left (x \right )} + \frac {B b x^{2}}{2} + \frac {B c x^{4}}{4} + \frac {C c x^{5}}{5} + x^{3} \left (\frac {A c}{3} + \frac {C b}{3}\right ) + x \left (A b + C a\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 6.50, size = 57, normalized size = 0.90 \begin {gather*} \frac {1}{5} \, C c x^{5} + \frac {1}{4} \, B c x^{4} + \frac {1}{3} \, C b x^{3} + \frac {1}{3} \, A c x^{3} + \frac {1}{2} \, B b x^{2} + C a x + A b x + B a \log \left ({\left | x \right |}\right ) - \frac {A a}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.04, size = 56, normalized size = 0.89 \begin {gather*} x\,\left (A\,b+C\,a\right )+x^3\,\left (\frac {A\,c}{3}+\frac {C\,b}{3}\right )-\frac {A\,a}{x}+\frac {B\,b\,x^2}{2}+\frac {B\,c\,x^4}{4}+\frac {C\,c\,x^5}{5}+B\,a\,\ln \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________